Telegram Group & Telegram Channel
Help: GDB Remote Debugging with Spike + pk Timing Out on Port 1234 (RV32IMAC)

Hi all,

I'm working with a RISC-V toolchain targeting rv32imac and trying to debug a simple hello.elf program using spike and gdb, but I'm stuck with a timeout issue when GDB tries to connect.

Here's what I have:

Toolchain: `riscv32-unknown-elf-gcc` (newlib)
hello.elf is compiled for RV32IMAC and runs fine with Spike + pk.
`pk` is 32-bit and works correctly.
GDB loads hello.elf correctly.



spike --isa=RV32IMAC /path/to/pk /path/to/hello.elf

This prints the expected output (e.g., “Hello, RISC-V!”).

When I try to launch Spike for remote debugging:

spike --isa=RV32IMAC --rbb-port=1234 /path/to/pk /path/to/hello.elf

It prints:

Listening for remote bitbang connection on port 1234.

Then in another terminal, I run GDB:

riscv32-unknown-elf-gdb /path/to/hello.elf
(gdb) target remote localhost:1234

But I get:

Could not connect: Connection timed out.

I’ve verified the ELF and pk binaries are 32-bit and compatible.
The firewall is disabled, and I'm on a local VM running Ubuntu.
Spike version is 1.1.1-dev (built from source).

# My Questions:

Is --rbb-port expected to work out-of-the-box with rv32imac?
Is there a minimum Spike or pk version required for remote GDB debugging?
Could this be an issue with how Spike is configured or built?

Any suggestions, debugging tips, or example working setups would be much appreciated!

Thanks in advance

https://redd.it/1l9viom
@r_riscv



tg-me.com/r_riscv/3430
Create:
Last Update:

Help: GDB Remote Debugging with Spike + pk Timing Out on Port 1234 (RV32IMAC)

Hi all,

I'm working with a RISC-V toolchain targeting rv32imac and trying to debug a simple hello.elf program using spike and gdb, but I'm stuck with a timeout issue when GDB tries to connect.

Here's what I have:

Toolchain: `riscv32-unknown-elf-gcc` (newlib)
hello.elf is compiled for RV32IMAC and runs fine with Spike + pk.
`pk` is 32-bit and works correctly.
GDB loads hello.elf correctly.



spike --isa=RV32IMAC /path/to/pk /path/to/hello.elf

This prints the expected output (e.g., “Hello, RISC-V!”).

When I try to launch Spike for remote debugging:

spike --isa=RV32IMAC --rbb-port=1234 /path/to/pk /path/to/hello.elf

It prints:

Listening for remote bitbang connection on port 1234.

Then in another terminal, I run GDB:

riscv32-unknown-elf-gdb /path/to/hello.elf
(gdb) target remote localhost:1234

But I get:

Could not connect: Connection timed out.

I’ve verified the ELF and pk binaries are 32-bit and compatible.
The firewall is disabled, and I'm on a local VM running Ubuntu.
Spike version is 1.1.1-dev (built from source).

# My Questions:

Is --rbb-port expected to work out-of-the-box with rv32imac?
Is there a minimum Spike or pk version required for remote GDB debugging?
Could this be an issue with how Spike is configured or built?

Any suggestions, debugging tips, or example working setups would be much appreciated!

Thanks in advance

https://redd.it/1l9viom
@r_riscv

BY RISC-V Reddit




Share with your friend now:
tg-me.com/r_riscv/3430

View MORE
Open in Telegram


RISC V Reddit Telegram | DID YOU KNOW?

Date: |

How to Buy Bitcoin?

Most people buy Bitcoin via exchanges, such as Coinbase. Exchanges allow you to buy, sell and hold cryptocurrency, and setting up an account is similar to opening a brokerage account—you’ll need to verify your identity and provide some kind of funding source, such as a bank account or debit card. Major exchanges include Coinbase, Kraken, and Gemini. You can also buy Bitcoin at a broker like Robinhood. Regardless of where you buy your Bitcoin, you’ll need a digital wallet in which to store it. This might be what’s called a hot wallet or a cold wallet. A hot wallet (also called an online wallet) is stored by an exchange or a provider in the cloud. Providers of online wallets include Exodus, Electrum and Mycelium. A cold wallet (or mobile wallet) is an offline device used to store Bitcoin and is not connected to the Internet. Some mobile wallet options include Trezor and Ledger.

Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.

RISC V Reddit from us


Telegram RISC-V Reddit
FROM USA